package com.template;

/**
 * Created by yangjun on 2018/3/24.
 */
public class Client {
    public static void main(String[] args) {
        AbstractClass concreteClass1 = new ConcreteClass1();
        AbstractClass concreteClass2 = new ConcreteClass2();

        //模板方法调用
        concreteClass1.templateMethod();
        concreteClass2.templateMethod();
    }
}
